package com.idcf.boathouse.order.utils;

import org.springframework.format.datetime.DateFormatter;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @description 日期工具类
 * @author: steve chenwang94@gmail.com
 * @create: 2020-12-29 19:33:44
 **/
public class DateUtil {
    private static DateTimeFormatter stdFmt = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static String getDateTime() {
        LocalDateTime now = LocalDateTime.now();
        return now.format(stdFmt);
    }
}
